package com.yuyou.train.util.constant.user;

import java.util.ArrayList;
import java.util.List;

public class UserMarkCons {


	public static List<UserMarkCons> markConfig=new ArrayList<UserMarkCons>(){
		private static final long serialVersionUID = -5587284089441631782L;

	{
		add(new UserMarkCons(Integer.MIN_VALUE,60,1));
		add(new UserMarkCons(60,76,2));
		add(new UserMarkCons(76,86,3));
		add(new UserMarkCons(86,Integer.MAX_VALUE,4));
	}};
	
	
	public static int getMultiple1(int score){
		for(UserMarkCons m:markConfig){
			if(m.getMin()<=score && score<m.getMax()){
				return m.getMultiple();
			}
		}	
		return 0;
	}
	
	public static void main(String[] args) {
		System.out.println(getMultiple1(80));
	}
	
	
	private int min;
	
	private int max;
	
	private int multiple;

		
	
	
	
	public UserMarkCons(int min, int max, int multiple) {
		super();
		this.min = min;
		this.max = max;
		this.multiple = multiple;
	}

	public int getMin() {
		return min;
	}

	public void setMin(int min) {
		this.min = min;
	}

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	public int getMultiple() {
		return multiple;
	}

	public void setMultiple(int multiple) {
		this.multiple = multiple;
	}
	
	
	
	
	

	
}
